package com.shuql.docker.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author ：shuquanliang
 * @date ：Created in 2020/4/26 10:23
 * @description：
 */
@Controller
@RequestMapping("/product")
public class ProductController {

    @GetMapping({"", "/"})
    public String index() {
        return "index";
    }

    @GetMapping("/list")
    public String list() {
        return "list";
    }

    @PostMapping("/add")
    public String add() {
        return "add";
    }

}
